package com.bfly.mall.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户操作日志
 *
 * @author 长沙商脉科技有限公司
 * @date 2020/12/24 13:09
 */
@TableName("user_log")
public class UserLog implements Serializable {

    private static final long serialVersionUID = 2573493653697796058L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 日志时间
     */
    @TableField("log_time")
    private Date time;

    /**
     * IP地址
     */
    @TableField("ip")
    private String ip;

    /**
     * URL地址
     */
    @TableField("url")
    private String url;

    /**
     * 日志标题
     */
    @TableField("title")
    private String title;

    /**
     * 日志内容
     */
    @TableField("content")
    private String content;

    /**
     * 操作者ID
     *
     * @author 长沙商脉科技有限公司
     * @date 2020/12/24 13:14
     */
    @TableField("user_id")
    private int userId;

    /**
     * 操作者
     */
    @TableField("user_name")
    private String userName;

    @TableField("is_success")
    private boolean success;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
}